package threadsafe;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : Demo
 * @Author : 54061
 * @Date: 2022/2/15 18:30
 */
public class Demo {
    public static void main(String[] args) {
        //创建任务对象
        SellTicket3 st = new SellTicket3();
        //创建购买窗口
        Thread t1 = new Thread(st,"窗口1");
        Thread t2 = new Thread(st,"窗口2");
        Thread t3 = new Thread(st,"窗口3");


        t1.start();
        t2.start();
        t3.start();
    }
}
